services.borgbackup.jobs.<name>.patterns

Include/exclude paths matching the given patterns. The first matching patterns is used, so if an include pattern (prefix +) matches before an exclude pattern (prefix -), the file is backed up. See borg help patterns for pattern syntax.

Can not be set when createCommand is set to import-tar.

Type
list of string
Default
[ ]
Example
[
  "+ /home/susan"
  "- /home/*"
]
Declared
<nixpkgs/nixos/modules/services/backup/borgbackup.nix>